package com.example.demo.config.logInterceptor;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author shenb
 * @date 2022-07-15 13:57
 */
@Documented
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Log {

    String value();

    Level level() default Level.INFO;

    enum Level {
        INFO, WARN, ERROR
    }
}
